const AddAraticle=require('../model/addarticleModel')

module.exports={
    get_adds:(req,res,next)=>{
        AddAraticle.addmodel(req.body.title,req.body.content,req.body.img).then(result=>{
            req.mess=result
            console.log(req.body.title)
            next();
        }).catch(err=>{
            next(err)
        })
    }
}